package qhdx.fiveGC.controller.fiveGc;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import qhdx.fiveGC.entity.fiveGc.FiveGcEntity;
import qhdx.fiveGC.service.FiveGcService;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @author MI
 */
@Slf4j
@RestController
@RequestMapping("/5gc")
public class FiveGcController {
    @Resource
    private FiveGcService fiveGcService;

    @PostMapping("/fiveGcQuery")
    public FiveGcEntity fiveGcQuery (@RequestBody FiveGcEntity fiveGcEntity){
        log.info("==========集团5GC-查询-入参: {}===========", fiveGcEntity);
        return fiveGcService.fiveGcQuery(fiveGcEntity);
    }
    @PostMapping("/log")
    public String   log (HttpServletResponse servletResponse) throws IOException {
        return  "ceshi";
    }
}
